<td><input type="checkbox" name="id[]" value="{$vo.id}"></td>
<td>{$vo.id}</td>
<td>
    {if !empty($vo['hotel_id'])}
    {php}echo Db::name('hotel')->where('id',$vo['hotel_id'])->value('hotel_name');{/php}
    {else /} 酒店不存在
    {/if}
</td>
<td>
    {if !empty($vo['room_type_id'])}
    {php}echo Db::name('hotel_room_type')->where('id',$vo['room_type_id'])->value('room_name');{/php}
    {else /} 该房型不存在
    {/if}
</td>
<td>
    <span id="num{$vo.id}">
        {$vo.number_of_rooms}
    </span>
    <span>
        <input type="text" class="input-text"  id="shu{$vo.id}" name="num" value="{$vo.number_of_rooms}" style="width: 20%;text-align: center;display: none;">
    </span>
</td>
<td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>